<style>
    .kami-table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
        font-size: 14px;
    }
    .kami-table th {
        background-color: #F5F5F5;
        padding: 10px 15px;
        text-align: left;
        border: 1px solid #DDD;
        font-weight: bold;
    }
    .kami-table td {
        padding: 8px 15px;
        border: 1px solid #DDD;
        vertical-align: middle;
    }
    .kami-table tr:nth-child(even) {
        background-color: #F9F9F9;
    }
    .kami-table tr:hover {
        background-color: #F0F7FF;
    }
    .kami-table .status-active {
        color: #090;
    }
    .kami-table .status-inactive {
        color: #900;
    }
</style>

<form name="cpform" method="post" autocomplete="off"  action="{$url_page}" method="get">
    <input type="text" name="id" value="{$query['id']}" placeholder="请输入ID">
    <input type="text" name="uid" value="{$query['uid']}" placeholder="请输入用户ID">
    <input type="text" name="kami_key" value="{$query['kami_key']}" placeholder="请输入卡密">
    <input type="text" name="order_no" value="{$query['order_no']}" placeholder="请输入平台订单号">
    <select name="is_api">
        <option value="">是否api购买</option>
        <option value="1" {if $query['is_api'] == 1}selected{/if}>api购买</option>
        <option value="2" {if $query['is_api'] == 2}selected{/if}>非api购买</option>
    </select>
    <select name="pagesize">
        <option value="10" {if $pagesize == 10}selected{/if}>10条/页</option>
        <option value="20" {if $pagesize == 20}selected{/if}>20条/页</option>
        <option value="50" {if $pagesize == 50}selected{/if}>50条/页</option>
        <option value="100" {if $pagesize == 100}selected{/if}>100条/页</option>
    </select>
    <!-- <input type="text" name="page" value="{$page}"> -->
    <input type="submit" value="搜索">
</form>

<table class="kami-table">
    <tr>
        <th width="5%">ID</th>
        <th width="5%">用户ID</th>
        <th width="5%">标题</th>
        <th width="10%">卡密</th>
        <th width="5%">消耗积分值</th>
        <th width="10%">是否api购买</th>
        <th width="10%">平台订单号</th>
    </tr>
    <!--{loop $kami_list $kami}-->
    <tr>
        <td>{$kami['id']}</td>
        <td>{$kami['uid']}</td>
        <td>{$kami['title']}</td>
        <td style="word-break: break-all;">{$kami['kami_key']}</td>
        <td>
            {$extcredits_data[$kami['extcredits']]['title']}
            {$kami['credit']}
        </td>
        <td>
            {if $kami['is_api'] == 1}
              $kami['api_domain']
            {else}否{/if}
        </td>
        <td>{$kami['order_no']}</td>
    </tr>
    <!--{/loop}-->
</table>

{$multipage}